// ******************************************************************
// * Copyright(c)  Steven Lu
// * Description   : Schema_hm_messages
// * CreateDate    : 2014-06-05 18:29:59
// * Creater       : CodeSmith
// * LastChangeDate: 2014-06-05 18:29:59
// * LastChanger   : 2014-06-05 18:29:59
// * Version Info  : 1.0 For ESOL
// ******************************************************************

using System;
using System.Collections.Generic;
using System.Text;
using Suzsoft.Smart.EntityCore;

namespace ESOL.Common.Schema
{
  	[Serializable]
    public partial class HmMessagesTable : TableInfo
    {
		public const string C_TableName = "hm_messages";
		
		public const string C_messageid = "messageid";
		public const string C_messageaccountid = "messageaccountid";
		public const string C_messagefolderid = "messagefolderid";
		public const string C_messagefilename = "messagefilename";
		public const string C_messagetype = "messagetype";
		public const string C_messagefrom = "messagefrom";
		public const string C_messagesize = "messagesize";
		public const string C_messagecurnooftries = "messagecurnooftries";
		public const string C_messagenexttrytime = "messagenexttrytime";
		public const string C_messageflags = "messageflags";
		public const string C_messagecreatetime = "messagecreatetime";
		public const string C_messagelocked = "messagelocked";
		public const string C_messageuid = "messageuid";
		
		public HmMessagesTable()
        {
            _tableName = "hm_messages";
        }
		
		protected static HmMessagesTable _current;
        public static HmMessagesTable Current
        {
            get
            {
                if (_current == null)
                {
                    Initial();
                }
                return _current;
            }
        }
		
		private static void Initial()
        {
            _current = new HmMessagesTable();

            _current.Add(C_messageid, new ColumnInfo(C_messageid,"Messageid", true, typeof(long)));
            _current.Add(C_messageaccountid, new ColumnInfo(C_messageaccountid,"Messageaccountid", false, typeof(int)));
            _current.Add(C_messagefolderid, new ColumnInfo(C_messagefolderid,"Messagefolderid", false, typeof(int)));
            _current.Add(C_messagefilename, new ColumnInfo(C_messagefilename,"Messagefilename", false, typeof(string)));
            _current.Add(C_messagetype, new ColumnInfo(C_messagetype,"Messagetype", false, typeof(byte)));
            _current.Add(C_messagefrom, new ColumnInfo(C_messagefrom,"Messagefrom", false, typeof(string)));
            _current.Add(C_messagesize, new ColumnInfo(C_messagesize,"Messagesize", false, typeof(long)));
            _current.Add(C_messagecurnooftries, new ColumnInfo(C_messagecurnooftries,"Messagecurnooftries", false, typeof(int)));
            _current.Add(C_messagenexttrytime, new ColumnInfo(C_messagenexttrytime,"Messagenexttrytime", false, typeof(DateTime)));
            _current.Add(C_messageflags, new ColumnInfo(C_messageflags,"Messageflags", false, typeof(byte)));
            _current.Add(C_messagecreatetime, new ColumnInfo(C_messagecreatetime,"Messagecreatetime", false, typeof(DateTime)));
            _current.Add(C_messagelocked, new ColumnInfo(C_messagelocked,"Messagelocked", false, typeof(byte)));
            _current.Add(C_messageuid, new ColumnInfo(C_messageuid,"Messageuid", false, typeof(long)));
			
		}
		
		public ColumnInfo messageid
        {
            get { return this[C_messageid]; }
        }
		
		public ColumnInfo messageaccountid
        {
            get { return this[C_messageaccountid]; }
        }
		
		public ColumnInfo messagefolderid
        {
            get { return this[C_messagefolderid]; }
        }
		
		public ColumnInfo messagefilename
        {
            get { return this[C_messagefilename]; }
        }
		
		public ColumnInfo messagetype
        {
            get { return this[C_messagetype]; }
        }
		
		public ColumnInfo messagefrom
        {
            get { return this[C_messagefrom]; }
        }
		
		public ColumnInfo messagesize
        {
            get { return this[C_messagesize]; }
        }
		
		public ColumnInfo messagecurnooftries
        {
            get { return this[C_messagecurnooftries]; }
        }
		
		public ColumnInfo messagenexttrytime
        {
            get { return this[C_messagenexttrytime]; }
        }
		
		public ColumnInfo messageflags
        {
            get { return this[C_messageflags]; }
        }
		
		public ColumnInfo messagecreatetime
        {
            get { return this[C_messagecreatetime]; }
        }
		
		public ColumnInfo messagelocked
        {
            get { return this[C_messagelocked]; }
        }
		
		public ColumnInfo messageuid
        {
            get { return this[C_messageuid]; }
        }
		
		
		
	}
}

